package com.ming.easyDevelop.entity.po;

import java.io.Serializable;
import java.util.Date;
import com.ming.easyDevelop.utils.DateUtils;
import com.ming.easyDevelop.entity.baseEnum.DateTimePatternEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description 
 * @Author ming
 * @Date 2024/07/10
 */
public class UserCoupons implements Serializable {


	public UserCoupons(){
	}	public UserCoupons(Integer userID, String couponCode, Date redemptionDate){
		this.userID = userID;
		this.couponCode = couponCode;
		this.redemptionDate = redemptionDate;
	}	/**
	 * 
	 */
	private Integer userID;

	/**
	 * 
	 */
	private String couponCode;

	/**
	 * 
	 */
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date redemptionDate;

	public void setUserID(Integer userID){
		this.userID = userID;
	}

	public Integer getUserID(){
		return this.userID;
	}

	public void setCouponCode(String couponCode){
		this.couponCode = couponCode;
	}

	public String getCouponCode(){
		return this.couponCode;
	}

	public void setRedemptionDate(Date redemptionDate){
		this.redemptionDate = redemptionDate;
	}

	public Date getRedemptionDate(){
		return this.redemptionDate;
	}

	@Override
	public String toString(){
		return "UserCoupons = {" + 
				"userID() = " + this.userID + 
				",couponCode() = " + this.couponCode + 
				",redemptionDate() = " + DateUtils.format(this.redemptionDate,DateTimePatternEnum.YYYY_MM_DD_HH_MM_SS.getPattern()) + 
			"}";
	}
}